#!/bin/bash
# Processing options & parameters with getopts
#
# x - with no arg data
# y: - with arg data

USAGE="Usage: ./$0 xxx"

while getopts :ab:cd opt
do
  case "$opt" in
    a) 
      echo "Found the -a option" 
      ;;
    b) 
      echo "Found the -b option, with value $OPTARG" 
      ;;
    c) 
      echo "Found the -c option" 
      ;;
    d) 
      echo "Found the -d option" 
      ;;
    *) 
      echo ${USAGE}
      exit 1
      ;;
  esac
done


